<template>
	<view>
		<view style="height: 100rpx;"></view>
		<view class="foot" >
			<view class="but" :style="{'background-color':bgcolor}" @click="getval">
				{{text}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
		    text: {
		        type: String,
		        default: '提交'
		    },
			bgcolor: {
			    type: String,
			    default: '#277EEF'
			}
		},
		data() {
			return {

			};
		},
		methods:{
			getval(){
				this.$emit('getvals')
			}
		}
	}
</script>

<style lang="scss">
.foot {
	background-color: #fff;
	width: 100%;
	height: 90rpx;
	position: fixed;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	border-top: 1px solid #e6e6e6;

	.but {

		width: 90%;
		margin: 0 auto;
		height: 80rpx;
		 
		border-radius: 28px;
		font-size: 30rpx;
		line-height: 80rpx;
		font-weight: 400;
		text-align: center;
		color: #fff;
	}
}
</style>
